package com.mmall.dao;

import com.mmall.pojo.Order;
import com.mmall.pojo.OrderItem;
import com.mmall.pojo.OrderProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderProduct record);

    int insertSelective(OrderProduct record);

    OrderProduct selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderProduct record);

    int updateByPrimaryKey(OrderProduct record);

    OrderProduct selectByUserIdAndOrderNo(@Param("userId")Integer userId, @Param("orderNo")Long orderNo);

    OrderProduct selectByOrderNo(@Param("orderNo")Long orderNo);
    List<OrderProduct> getByOrderNoUserId(@Param("orderNo")Long orderNo, @Param("userId")Integer userId);
    List<Map> getmyAccountUserId(@Param("userId")Integer userId);
}